package com.qlm.entity;

import com.jfinal.plugin.activerecord.Model;

public class Rank extends Model<Rank> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static Rank dao = new Rank();
	
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		} else {
			if (o instanceof Rank) {
				Rank newRank = Rank.class.cast(o);
				String openid = newRank.getStr("openid");
				String myOpenid = this.getStr("openid");
				if (openid == null || myOpenid == null) {
					return false;
				} else {
					return openid.equals(myOpenid);
				}

			} else {
				return false;
			}
		}
	}
}
